
#include <Shape2D.h>

Shape2D::Shape2D(unsigned int width, unsigned int height)
:
m_width(width),
m_height(height)
{
}

unsigned int
Shape2D::getArea() const
{
    return m_width * m_height;
}

unsigned int
Shape2D::getPerimeter() const
{
    return (m_width + m_height) * 2;
}



